import {Entity, PrimaryGeneratedColumn, ManyToOne, BaseEntity} from 'typeorm';
import { GoodsSPU } from './goods-spu.entity';
import { GoodsTag } from './goods-tag.entity';

@Entity()
export class GoodsSPUTag extends BaseEntity {
    @PrimaryGeneratedColumn()
    id: number;

    @ManyToOne(() => GoodsSPU)
    goodsSPU: GoodsSPU;

    @ManyToOne(() => GoodsTag)
    tag: GoodsTag;
}
